#include "pwr.h"

void PWR_EnterStandby(void)
{
#ifdef USING_HAL
	PWR->CR |= 1 << 2; //CWUF位清除
	
	HAL_PWR_EnterSTANDBYMode();
#else
    SCB->SCR |= 1 << 2;	//SLEEPDEEPλ
    PWR->CR |= 1 << 1; //PDDS位
    PWR->CR |= 1 << 2; //CWUF位清除

//	__ASM("WFI");
    __WFI();
#endif
}